import { createAction } from '../utils/redux'
import { COMMENT_PROD, COMMENT_PROD_PAGE } from '../constants/comment'
import { API_COMMENT_PROD, API_COMMENT_PROD_PAGE } from '../constants/api'

/**
 * 商品评论
 * @param {*} payload 
 */
export const dispatchCommentProd = payload => createAction({
    url: API_COMMENT_PROD,
    type: COMMENT_PROD,
    payload
})

export const dispatchCommentProdPage = payload => createAction({
    url: API_COMMENT_PROD_PAGE,
    type: COMMENT_PROD_PAGE,
    payload
})